package org.example.maven.pojo.list;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.example.maven.annotation.DoGetEnum;

import java.time.LocalDate;


@Data
public class ListTableCollection {
    @ExcelProperty("藏品id")
    private Integer id;
    @ExcelProperty("藏品编号")
    private  String internalId;
    @ExcelProperty("藏品名称")
    private String name;
    @ExcelProperty("藏品别名")
    private String alternateName;
    @ExcelProperty("保存状态")
    private PreservationStatus preservationStatus = PreservationStatus.完好;
    @ExcelProperty("藏品存放位置")
    private String currentLocation;
    @ExcelProperty("藏品状态")
    private CollectionStatus status = CollectionStatus.在库;
    @ExcelProperty("藏品入馆时间")
    private LocalDate acquisitionDate;
    @ExcelProperty("藏品是否删除")
    private Boolean isDeleted = false;



    // 保存状态枚举
    public  enum PreservationStatus {
        完好, 轻微损伤, 严重损伤, 修复中;


    }

    // 藏品状态枚举
    public enum CollectionStatus {
        在库, 展出, 外借, 修复中, 已注销
    }

}
